#!/usr/bin/python

import wx,os

def here(message=''):#poor man's debugger
   here.invocation_nr+=1
   wx.LogStatus("here: %s | %d"%(str(message),here.invocation_nr))
here.invocation_nr=0

def pr(locals,print_me=False):
	pr.invocation_nr+=1
	print '-'*60, pr.invocation_nr
	s=''
	for k,v in locals.items():
		if not print_me and k=='me': continue
		s+='%-20s = %r\n'%(k,v)
	print s
pr.invocation_nr=0

ON=False

if os.path.exists('DEBUG'):
	ON=True
	
base='./dev/corpus/'

if 0:
	files=[
		base+'top.py',
		base+'pickle.py',
		base+'bzip2.c',
		base+'silhouette.py',
		base+'textbar.py',
	]

if 0: files=['main_panel.py']

if 0: files=[]

if 1:
	files = [base + s for s in ('HIDUSBDevice.cs','bzip2.c','textbar.py','KernelRidgeRegressor.cc')]
